package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * @Author: Czh
 * @Date: 2019/4/4  16:36
 * @Version: 1.0
 **/
public interface IUserService {

     ServerResponse<User> login(String username , String password);

     ServerResponse<String> register(User user);

     ServerResponse<String> checkValid(String str , String type);

     ServerResponse<String> forgetGetQuestion(String username);

     ServerResponse<String> checkAnwer(String username , String question , String answer);

     ServerResponse<String> forgetResetPassword(String username , String passwordNew , String forgetToken);

     ServerResponse<String> resetPassword(String passwordOld , String passwrodNew , User user);

     ServerResponse<User> updateInformation(User user);

     ServerResponse<User> getInformation(Integer userId);

     ServerResponse checkAdminRole(User user);

}
